<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@taglib uri="/struts-tags" prefix="s" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><s:text name="site.title"/></title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<script src="js/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="js/jquery.jcarousel.pack.js" type="text/javascript"></script>
<script src="js/jquery-func.js" type="text/javascript"></script>
<script src="js/common.js" type="text/javascript"></script>
<style type="text/css">
	#rightBox ul{
		margin-top : 10px; 
	}
	#rightBox ul li{
		list-style: none;
		list-style-type: none;
		height: 25px;
		line-height: 25px;
		width: 300px;
		padding-left: 10px;
	}
	#rightBox ul li a{
		width: 300px;
	}
	#top_intro{
		background: url("css/images/main.jpg");
		width: 100%;
		height: 50px;
		margin: 0 auto;
	}
	#top_intro div{
		width: 970px;
		height: 50px;
		margin: 0 auto;
	}
	#leftBox{
		WIDTH: 660px; 
		border: 1px green solid;
		float: left;
	}
	#news_main{
		width: 970px;
		margin: 0 auto;
	}
	#newsBox h3{
		padding-top: 15px;
		text-align: center;
	}
	#new_desc{
		width: 640px;
		text-align: right;
		margin-top: 10px;
	}
	.newsMess{
		LINE-HEIGHT: 25px; 
		PADDING-TOP: 30px;
		width: 640px;
		padding-right: 10px;
		padding-left: 10px;
	}
	#rightBox{
		margin-left: 670px;
		border: 1px solid green;
		width: 300px;
		margin-top: 10px;
	}
</style>
</head>
<%
    String path = request.getRequestURI();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path;
%>
<base href="<%=basePath%>">
<body>
<%@include file="header.jsp"  %>
<div id="top_intro">
	<div>
	<h3 class="tab"><span class="ico ico1"><s:text name="prod_introduction" /></span></h3>
	</div>
</div>

<!-- Main -->
<div id="news_main">
	<div id="leftBox">
		<div id="newsBox">
			<h3>
				${news.title }
			</h3>
			<div id="new_desc">
				${news.createTime }
				&nbsp;&nbsp;|&nbsp;&nbsp;from zeli &nbsp;&nbsp;|&nbsp;&nbsp;${news.editor }&nbsp;&nbsp;|&nbsp;&nbsp;
				<a href="javascript:addfavorite()">收藏本文</a>&nbsp;
			</div>
			<div class="newsMess">
				<p>${news.content }</p>
				<span>(责任编辑：[${news.editor } ])</span>
			</div>
		</div>
	</div>
	<div id="rightBox">
		<ul>
			<c:forEach var="news_list" items="${list}">
				<li><a href="news-detail.action?id=${news_list.id }">${news_list.title }</a></li>
			</c:forEach>
		</ul>
	</div>
</div>
<!-- End Main -->
<!-- Footer -->
<%@include file="footer.jsp" %>
<!-- End Footer -->
</body>
</html>
